import request from "@/netword/request";


const fun = {}


//用户登陆
fun.login = async (loginCode,password) => {
    const res = await request({
        url: "/a/core/user/login",
        method: "post",
        params: {
            loginCode: loginCode,
            password:password
        }
    })
    return res.data;
}


//用户退出登陆
fun.userLogout = async () => {
    const res = await request({
        url: "/a/core/user/logout",
        method: "post",
        params: {
        }
    })
    return res.data;
}


export default fun;